<template></template>

<script setup lang="ts">
import WpsSDK from '@/plugins/web-office-sdk-v1.1.19.es';

import { decodeByBase64 } from '@vc/utils';

const url = decodeByBase64(useRoute().params.url as string);

onMounted(() => {
  const wps = WpsSDK.config({
    mode: 'normal',
    mount: document.getElementById('wpsViewPage'),
    url: url
  });
  wps?.setToken({ token: '' });
});
</script>
